package com.cctc.security.dao;

import org.springframework.stereotype.Repository;

import com.cctc.framework.dao.BaseDao;
import com.cctc.security.domain.Group;

@Repository
public class GroupDao<T extends Group> extends BaseDao<Object>
{
    
    public void addGroup(T t)
    {
       save(t);
    }
    
    public void delGroup(T t)
    {
        delete(t);
    }
    
    public void updateGroup(T t)
    {
        update(t);
    }
    
    public Group findGroupById(String id)
    {
        return this.getHibernateTemplate().get(Group.class, id);
    }
}
